﻿using System;
using System.ComponentModel;

using DevExpress.Xpo;
using DevExpress.Data.Filtering;

using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;

namespace DrugShop.Module
{
    [DefaultClassOptions]
    public class 药品字典 : XPObject
    {
        public 药品字典(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here or place it only when the IsLoading property is false:
            // if (!IsLoading){
            //    It is now OK to place your initialization code here.
            // }
            // or as an alternative, move your initialization code into the AfterConstruction method.
        }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }

        private string _药品编码;
        [Custom("Caption", "药品编码")]
        public string 药品编码
        {
            get { return _药品编码; }
            set { SetPropertyValue<string>("药品编码", ref _药品编码, value); }
        }

        private string _中文名称;
        [Custom("Caption", "中文名称")]
        public string 中文名称
        {
            get { return _中文名称; }
            set { SetPropertyValue<string>("中文名称", ref _中文名称, value); }
        }
        private string _药品规格;
        [Custom("Caption", "药品规格")]
        public string 药品规格
        {
            get { return _药品规格; }
            set { SetPropertyValue<string>("药品规格", ref _药品规格, value); }
        }
        private string _小包装;
        [Custom("Caption", "小包装")]
        public string 小包装
        {
            get { return _小包装; }
            set { SetPropertyValue<string>("小包装", ref _小包装, value); }
        }
        private decimal _药品参考价格;
        [Custom("Caption", "药品参考价格")]
        public decimal 药品参考价格
        {
            get { return _药品参考价格; }
            set { SetPropertyValue<decimal>("药品参考价格", ref _药品参考价格, value); }
        }
        private int _药品库存上限;
        [Custom("Caption", "药品库存上限")]
        public int 药品库存上限
        {
            get { return _药品库存上限; }
            set { SetPropertyValue<int>("药品库存上限", ref _药品库存上限, value); }
        }
        private int _药品库存下限;
        [Custom("Caption", "药品库存下限")]
        public int 药品库存下限
        {
            get { return _药品库存下限; }
            set { SetPropertyValue<int>("药品库存下限", ref _药品库存下限, value); }
        }
        private string _药理类型;
        [Custom("Caption", "药理类型")]
        public string 药理类型
        {
            get { return _药理类型; }
            set { SetPropertyValue<string>("药理类型", ref _药理类型, value); }
        }

        private string _批准文号;
        [Custom("Caption", "批准文号")]
        public string 批准文号
        {
            get { return _批准文号; }
            set { SetPropertyValue<string>("批准文号", ref _批准文号, value); }
        }
        private int _药品类型;
        [Custom("Caption", "药品类型")]
        public int 药品类型
        {
            get { return _药品类型; }
            set { SetPropertyValue<int>("药品类型", ref _药品类型, value); }
        }
        private int _处方或非处方药;
        [Custom("Caption", "处方或非处方药")]
        public int 处方或非处方药
        {
            get { return _处方或非处方药; }
            set { SetPropertyValue<int>("处方或非处方药", ref _处方或非处方药, value); }
        }
        private string _输入码;
        [Custom("Caption", "输入码")]
        public string 输入码
        {
            get { return _输入码; }
            set { SetPropertyValue<string>("输入码", ref _输入码, value); }
        }
        private string _备注;
        [Custom("Caption", "备注")]
        public string 备注
        {
            get { return _备注; }
            set { SetPropertyValue<string>("备注", ref _备注, value); }
        }
        private bool _是否启用;
        [Custom("Caption", "是否启用")]
        public bool 是否启用
        {
            get { return _是否启用; }
            set { SetPropertyValue<bool>("是否启用", ref _是否启用, value); }
        }


        

    }

}
